﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductCriterions.aspx.cs"
    Inherits="CoolCode.Web.UI.Views.Check.ProductCriterions" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>产品标准管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="tsmAjax" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Content/js/Common.js" />
        </Scripts>
    </ajaxToolkit:ToolkitScriptManager>
    <!--Title -->
    <div class="HeaderTitle">
        <asp:Label ID="SCRHDR" runat="server" Text="产品管理"></asp:Label>
    </div>
    <!--Grid-->
    <asp:UpdatePanel ID="udpHeader" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="HeaderToolbar">
               <%-- <asp:LinkButton ID="lnkSearch" runat="server" CausesValidation="False" Text="搜索" />&nbsp;--%>
                <a href="#" onclick="refresh();">刷新</a>&nbsp;
            </div>
            <div id="products" class="HeaderGridView">
                <asp:GridView ID="gvMaster" runat="server" SkinID="gvMaster" Width="100%" DataKeyNames="ProductSpec">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="80" ItemStyle-HorizontalAlign="Center" >
                            <HeaderTemplate>
                                <div>
                                    <asp:Label ID="Operation" runat="server" Text="操作"></asp:Label></div>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <div>
                                    <asp:LinkButton ID="lnkEdit" runat="server" Text="编辑" CommandName="Edit" CommandArgument='<%#Eval("ProductSpec") %>'>
                                </asp:LinkButton> 
                                    <%--   <a href='CreateProduct.aspx?key=<%#Eval("ID") %>&product=<%#Eval("ProductID") %>'>编辑</a> --%>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ProductSpec" HeaderText="产品规格" ItemStyle-Width="90" ItemStyle-CssClass="LeftColumns" />
                        <asp:TemplateField ItemStyle-Width="120">
                            <HeaderTemplate>
                                <asp:Literal ID="ltrODFar" runat="server" Text="胶面外径（远）"></asp:Literal></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Literal ID="ltrODFar" runat="server" Text='<%#Eval("MinODFar","{0:0.00}")+" ~ "+Eval("MaxODFar","{0:0.00}") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="120">
                            <HeaderTemplate>
                                <asp:Literal ID="ltrODClose" runat="server" Text="胶面外径（进）"></asp:Literal></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Literal ID="ltrODClose" runat="server" Text='<%#Eval("MinODFar","{0:0.00}")+" ~ "+Eval("MaxODFar","{0:0.00}") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="120">
                            <HeaderTemplate>
                                <asp:Literal ID="ltrConeHeight" runat="server" Text="椎体高度"></asp:Literal></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Literal ID="ltrConeHeight" runat="server" Text='<%#Eval("MinConeHeight","{0:0.00}")+" ~ "+Eval("MaxConeHeight","{0:0.00}") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="120">
                            <HeaderTemplate>
                                <asp:Literal ID="ltrSacculusLength" runat="server" Text="球囊长度"></asp:Literal></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Literal ID="ltrSacculusLength" runat="server" Text='<%#Eval("MinSacculusLength","{0:0.00}")+" ~ "+Eval("MaxSacculusLength","{0:0.00}") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="120">
                            <HeaderTemplate>
                                <asp:Literal ID="ltrSacculusStretch" runat="server" Text="球囊伸长长度"></asp:Literal></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Literal ID="ltrSacculusStretch" runat="server" Text='<%#Eval("MinSacculusStretch","{0:0.00}")+" ~ "+Eval("MaxSacculusStretch","{0:0.00}") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="120">
                            <HeaderTemplate>
                                <asp:Literal ID="ltrODStressTest2" runat="server" Text="220KPa压力测试（外径）"></asp:Literal></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Literal ID="ltrODStressTest2" runat="server" Text='<%#Eval("MinODStressTest2","{0:0.00}")+" ~ "+Eval("MaxODStressTest2","{0:0.00}") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="120">
                            <HeaderTemplate>
                                <asp:Literal ID="ltrStressTestLength" runat="server" Text="220KPa压力测试（长度）"></asp:Literal></HeaderTemplate>
                            <ItemTemplate>
                                <asp:Literal ID="ltrStressTestLength" runat="server" Text='<%#Eval("MinStressTestLength","{0:0.00}")+" ~ "+Eval("MaxStressTestLength","{0:0.00}") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField> 
                    </Columns>
                    <EmptyDataTemplate>
                        <cc:EmptyData ID="EmptyData1" runat="server"></cc:EmptyData>
                    </EmptyDataTemplate>
                </asp:GridView>
            </div>
            <div style="clear: both;">
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <asp:UpdatePanel ID="udpEntry" runat="server"  UpdateMode="Conditional" >
     <ContentTemplate>
            <asp:Panel ID="pnlEntry" runat="server">
                <div class="generalDialog" align="center">
                    <div id="EntryHeader" class="Header">
                        <asp:Label ID="EntryTitle" runat="server" Text="标准修改"></asp:Label>
                    </div>
                    <div>
                        <table cellspacing="5" width="800px">
                            <tr>
                                <td align="right" style="width: 80px;">
                                    <asp:Label ID="lblProductSpec" runat="server" Text="产品规格"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtProductSpec" runat="server" CssClass="readonly" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 80px;">
                                    <asp:Label ID="lblOD" runat="server" Text="胶面远端外径"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    <cc:TextRange ID="rngODFar" runat="server"></cc:TextRange>
                                </td>
                                <td align="right" style="width: 80px;">
                                    <asp:Label ID="Label1" runat="server" Text="胶面近端外径"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    <cc:TextRange ID="rngODClose" runat="server"></cc:TextRange>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 80px;">
                                    <asp:Label ID="lblConeHeight" runat="server" Text="椎体高度"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    <cc:TextRange ID="rngConeHeight" runat="server"></cc:TextRange>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 80px;">
                                    <asp:Label ID="lblSacculusLength" runat="server" Text="球囊长度"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    <cc:TextRange ID="rngSacculusLength" runat="server"></cc:TextRange>
                                </td>
                                <td align="right" style="width: 100px;">
                                    <asp:Label ID="lblSacculusStretch" runat="server" Text="球囊伸长长度"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    <cc:TextRange ID="rngSacculusStretch" runat="server"></cc:TextRange>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 100px;">
                                    <asp:Label ID="lblStressTest2" runat="server" Text="220KPa压力测试（外径）"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    <cc:TextRange ID="rngStressTest2" runat="server"></cc:TextRange>
                                </td>
                                <td align="right" style="width: 100px;">
                                    <asp:Label ID="lblStressTestLength" runat="server" Text="220KPa压力测试（长度）"></asp:Label>
                                </td>
                                <td align="left" style="width: 300px;">
                                    <cc:TextRange ID="rngStressTestLength" runat="server"></cc:TextRange>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <!--Hidden-->
                    <div style="display: none">
                    </div>
                    <div class="Toolbar">
                        <asp:Button ID="btnSave" runat="server" CssClass="FlatButton" Text="保存" />
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <cc:Loading ID="Loading1" runat="server"></cc:Loading>
    </form>
</body>
</html>
